package wsi.gui.resolve;

import org.rygh.gui.model.presenter.FPresenter;
import org.rygh.gui.view.BorderView;
import org.rygh.gui.view.one.OneTableView;

import wsi.gui.resolve.model.MatchInfoData;

public class JudgeView extends BorderView {

	private final JudgeBottomView bottomView;
	private final OneTableView<MatchInfoData> tableView;

	public JudgeView(FPresenter presenter) {
		super(presenter);

		bottomView = new JudgeBottomView(presenter);
		tableView = new OneTableView<>(presenter);

		init();
	}

	public JudgeBottomView getBottomView() {
		return bottomView;
	}

	public OneTableView<MatchInfoData> getTableView() {
		return tableView;
	}

	private void init() {
		setCenter(tableView);
		setBottom(bottomView);
	}
}
